package thinkinjava4.ch18_io;

import thinkinjava4.util.Directory;
import thinkinjava4.util.PPrint;

import java.io.File;

import static thinkinjava4.util.Print.print;

public class DirectoryDemo {
    public static void main(String[] args) {
//        PPrint.pprint(Directory.walk(".").dirs);
        for (File file : Directory.local(".", "T.*"))
            print(file);
        System.out.println("--------------------");
        for (File file : Directory.walk(".", "T.*\\.java"))
            print(file);
        System.out.println("--------------------");
        for(File file:Directory.walk(".",".*[Zz].*\\.java"))
            print(file);
    }
}
